package com.zxdemo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zxdemo.jpa.model.Menu;
import com.zxdemo.service.MenuService;

@RestController
@RequestMapping("/menu")
public class MenuController {
		@Autowired
		private MenuService menuService;
	    @RequestMapping("/user")
		public List<Menu> UserMenu()
		{
	    	List<Menu> list =menuService.getUserMenuList(1L);
	    	return list;
		}
}
